from behavioral.chain_of_responsibility.ConcreteHandler1 import ConcreteHandler1
from behavioral.chain_of_responsibility.ConcreteHandler2 import ConcreteHandler2
from behavioral.chain_of_responsibility.ConcreteHandler3 import ConcreteHandler3

if __name__ == '__main__':
    h1 = ConcreteHandler1()
    h2 = ConcreteHandler2()
    h3 = ConcreteHandler3()

    h1.successor(h2)
    h2.successor(h3)

    requests = [2, 5, 14, 22, 18, 3, 35, 27, 20]
    for request in requests:
        h1.handle(request)
